home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 367 < prev    next >
Text File  |  1996-08-06  |  1KB  |  38 lines

  1. Path: solon.com!not-for-mail
  2. From: jmccarty@spdmail.spd.dsccc.com (Mike McCarty)
  3. Newsgroups: comp.std.c,comp.lang.c.moderated
  4. Subject: Re: Integral promotion.
  5. Date: 24 Feb 1996 09:37:29 -0600
  6. Organization: DSC Communications Corporation, Plano, Texas USA
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4gnbbp$bhu@solutions.solon.com>
  10. References: <4fstj7$2l6@solutions.solon.com> <4fu835$9de@solutions.solon.com> <4fvgrm$dv9@solutions.solon.com> <4g27gn$q5k@solutions.solon.com>
  11. NNTP-Posting-Host: solutions.solon.com
  12.  
  13. In article <4g27gn$q5k@solutions.solon.com>,
  14. Chris Torek  <torek@bsdi.com> wrote:
  15. )In article <4fvgrm$dv9@solutions.solon.com>,  <msb@sq.com> wrote:
  16.  
  17. [stuff cut]
  18.  
  19. )>#  When a value with integral type is demoted to a signed integer with
  20. )>#  smaller size ... if the value cannot be represented the result is
  21. )>#  implementation-defined.
  22. )>
  23. )>Hence implementation-defined behavior occurs.
  24. )
  25. )Thus, the implementation has to say exactly how it handles this.
  26. )There is still some question as to whether the implementation can
  27. )define it as an overflow resulting in program termination, is there
  28. )not?
  29.  
  30. Where in the standard does it say that a compiler must be accompanied by
  31. -any- documentation?
  32.  
  33. Mike
  34. ----
  35. char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
  36.  
  37. I don't speak for DSC.         <- They make me say that.
  38.